package Properties.T5;

import java.io.FileInputStream;
import java.io.IOException;
import java.util.Properties;

public class T5 {

    public static void main(String[] args) throws IOException, IllegalAccessException, InstantiationException {

        Properties pro = new Properties();
        FileInputStream fis = new FileInputStream("a1.properties");
        pro.load(fis);
        fis.close();

        System.out.println(pro);

        System.out.println("--------------");

        Class<DemoClass> aClass = DemoClass.class;
        DemoClass dc = aClass.newInstance();
        dc.run();

    }
}
